<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul {
            /* 外边距 */
            margin: 0;
            /* 内边距 */
            padding: 0;
        }

        li {
            list-style: none;
        }

        a {
            /* 转换为块元素 */
            display: block;
            text-decoration: none;
            text-align: center;
        }

        /* 鼠标移上改变字体和背景颜色 */
        a:hover {
            color: peru;
            background: pink;
        }
    </style>
</head>

<body>
    <ul>
        <li>
            <a href="">首页</a>
        </li>
        <li>
            <a href="">科技</a>
        </li>
        <li>
            <a href="">农产品</a>
        </li>
    </ul>
</body>

</html>